package com.zerui.manager.devicegroup.convertor;

import com.zerui.manager.devicegroup.DeviceGroup;
import com.zerui.manager.devicegroup.entity.DeviceGroupDo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author wh
 * @create_time 2023-08-23 15:28
 */
@Mapper
public interface DeviceGroupConvert {

	DeviceGroupConvert INSTANCE = Mappers.getMapper(DeviceGroupConvert.class);

	DeviceGroup convertDeviceGroupDoToDeviceGroup(DeviceGroupDo deviceGroupDo);

	DeviceGroupDo convertDeviceGroupToDeviceGroupDo(DeviceGroup deviceGroup);

	List<DeviceGroup> convertDeviceGroupDosToDeviceGroups(List<DeviceGroupDo> deviceGroupDos);

	List<DeviceGroupDo> convertDeviceGroupsToDeviceGroupDos(List<DeviceGroup> deviceGroups);
}
